/**
 * 构造下载
 * @param blob 二进制信息
 * @param fileName 文件名
 */
export default function download(blob: Blob, fileName: string): void {
  const link = document.createElement('a');
  link.download = fileName;
  link.style.display = 'none';
  link.href = URL.createObjectURL(blob);
  document.body.appendChild(link);
  link.click();
  document.body.removeChild(link);
}
